package com.zbf.web;

import com.zbf.dao.TestDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/23  8:20
 * 描述:
 */

//@RestController
public class TestController {

    private Logger logger=LoggerFactory.getLogger("XXXX");


    @RequestMapping("test01")
    public void test01(){
        logger.info("=====测试日志===XXXX==");

        System.out.println("=========8888=======");
    }


    @Autowired
    private TestDao testDao;


    @RequestMapping("test02")
    public void test02(){
        logger.info("=====更新操作===XXXX==");

        Map<String,Object> map=new HashMap<>();
        map.put("id",3);
        map.put("quantity",300);

        testDao.updateOrder(map);


        System.out.println("=========8888=======");
    }


}
